﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Family
{
    public class Helper
    {
        public string getCategory(int No)
        {
            string str = "";

            for (int i = 0; i < (Application.Current as App).categoryList.Count; i++)
            {
                if (No == (Application.Current as App).categoryList[i].Id)
                {
                    str = (Application.Current as App).categoryList[i].Name;
                    return str;
                }
            }

            return str;
        }

        public string getCountry(int No)
        {
            string str = "";

            for (int i = 0; i < (Application.Current as App).countryList.Count; i++)
            {
                if (No == (Application.Current as App).countryList[i].Id)
                {
                    str = (Application.Current as App).countryList[i].Name;
                    return str;
                }
            }

            return str;
        }
    }
}
